Skip to content

A new function to idle the motor after stepping#59

Open
fduraibi wants to merge 1 commit into
arduino-libraries:masterfrom
fduraibi:master
Open

A new function to idle the motor after stepping#59
fduraibi wants to merge 1 commit into
arduino-libraries:masterfrom
fduraibi:master

Conversation

@fduraibi

@fduraibi fduraibi commented Sep 6, 2025

Copy link
Copy Markdown

A new function that allow setting the idle option to power down all the motor coils after stepping, in order to reduce power and heat. That also allows manual rotation of the motor.

A new function that allow setting the idle option to power down all the motor coils after stepping, in order to reduce power and heat. That also allows manual rotation of the motor.
@github-actions

github-actions Bot commented Sep 6, 2025

Copy link
Copy Markdown

Memory usage change @ 8825bb0

Board flash % RAM for global variables %
arduino:avr:leonardo 🔺 +104 - +132 +0.36 - +0.46 🔺 +1 - +1 +0.04 - +0.04
arduino:avr:mega 🔺 +104 - +132 +0.04 - +0.05 🔺 +1 - +1 +0.01 - +0.01
arduino:avr:nano 🔺 +104 - +132 +0.34 - +0.43 🔺 +1 - +1 +0.05 - +0.05
arduino:mbed_nano:nano33ble 🔺 +64 - +128 +0.01 - +0.01 🔺 0 - +8 0.0 - 0.0
arduino:mbed_nano:nanorp2040connect 🔺 +90 - +90 0.0 - 0.0 🔺 0 - +8 0.0 - 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
arduino:mbed_portenta:envie_m7:target_core=cm4 N/A N/A N/A N/A
arduino:megaavr:nona4809 🔺 +118 - +148 +0.24 - +0.3 🔺 +1 - +1 +0.02 - +0.02
arduino:megaavr:uno2018 🔺 +118 - +148 +0.24 - +0.3 🔺 +1 - +1 +0.02 - +0.02
arduino:sam:arduino_due_x_dbg 🔺 +80 - +80 +0.02 - +0.02 N/A N/A
arduino:samd:arduino_zero_edbg 🔺 +88 - +92 +0.03 - +0.04 🔺 +4 - +4 +0.01 - +0.01
arduino:samd:mkrzero 🔺 +88 - +92 +0.03 - +0.04 🔺 +4 - +4 +0.01 - +0.01
arduino:samd:nano_33_iot 🔺 +88 - +92 +0.03 - +0.04 🔺 +4 - +4 +0.01 - +0.01
Click for full report table
Board examples/MotorKnob
flash
% examples/MotorKnob
RAM for global variables
% examples/stepper_oneRevolution
flash
% examples/stepper_oneRevolution
RAM for global variables
% examples/stepper_oneStepAtATime
flash
% examples/stepper_oneStepAtATime
RAM for global variables
% examples/stepper_speedControl
flash
% examples/stepper_speedControl
RAM for global variables
%
arduino:avr:leonardo 104 0.36 1 0.04 132 0.46 1 0.04 104 0.36 1 0.04 104 0.36 1 0.04
arduino:avr:mega 104 0.04 1 0.01 132 0.05 1 0.01 104 0.04 1 0.01 104 0.04 1 0.01
arduino:avr:nano 104 0.34 1 0.05 132 0.43 1 0.05 108 0.35 1 0.05 104 0.34 1 0.05
arduino:mbed_nano:nano33ble 64 0.01 8 0.0 128 0.01 8 0.0 128 0.01 0 0.0 128 0.01 0 0.0
arduino:mbed_nano:nanorp2040connect 90 0.0 8 0.0 90 0.0 0 0.0 90 0.0 8 0.0 90 0.0 0 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
arduino:mbed_portenta:envie_m7:target_core=cm4 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
arduino:megaavr:nona4809 120 0.24 1 0.02 148 0.3 1 0.02 118 0.24 1 0.02 120 0.24 1 0.02
arduino:megaavr:uno2018 120 0.25 1 0.02 148 0.3 1 0.02 118 0.24 1 0.02 120 0.25 1 0.02
arduino:sam:arduino_due_x_dbg 80 0.02 N/A N/A 80 0.02 N/A N/A 80 0.02 N/A N/A 80 0.02 N/A N/A
arduino:samd:arduino_zero_edbg 88 0.03 4 0.01 88 0.03 4 0.01 92 0.04 4 0.01 88 0.03 4 0.01
arduino:samd:mkrzero 88 0.03 4 0.01 88 0.03 4 0.01 92 0.04 4 0.01 88 0.03 4 0.01
arduino:samd:nano_33_iot 88 0.03 4 0.01 88 0.03 4 0.01 92 0.04 4 0.01 88 0.03 4 0.01
Click for full report CSV
Board,examples/MotorKnob<br>flash,%,examples/MotorKnob<br>RAM for global variables,%,examples/stepper_oneRevolution<br>flash,%,examples/stepper_oneRevolution<br>RAM for global variables,%,examples/stepper_oneStepAtATime<br>flash,%,examples/stepper_oneStepAtATime<br>RAM for global variables,%,examples/stepper_speedControl<br>flash,%,examples/stepper_speedControl<br>RAM for global variables,%
arduino:avr:leonardo,104,0.36,1,0.04,132,0.46,1,0.04,104,0.36,1,0.04,104,0.36,1,0.04
arduino:avr:mega,104,0.04,1,0.01,132,0.05,1,0.01,104,0.04,1,0.01,104,0.04,1,0.01
arduino:avr:nano,104,0.34,1,0.05,132,0.43,1,0.05,108,0.35,1,0.05,104,0.34,1,0.05
arduino:mbed_nano:nano33ble,64,0.01,8,0.0,128,0.01,8,0.0,128,0.01,0,0.0,128,0.01,0,0.0
arduino:mbed_nano:nanorp2040connect,90,0.0,8,0.0,90,0.0,0,0.0,90,0.0,8,0.0,90,0.0,0,0.0
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
arduino:mbed_portenta:envie_m7:target_core=cm4,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
arduino:megaavr:nona4809,120,0.24,1,0.02,148,0.3,1,0.02,118,0.24,1,0.02,120,0.24,1,0.02
arduino:megaavr:uno2018,120,0.25,1,0.02,148,0.3,1,0.02,118,0.24,1,0.02,120,0.25,1,0.02
arduino:sam:arduino_due_x_dbg,80,0.02,N/A,N/A,80,0.02,N/A,N/A,80,0.02,N/A,N/A,80,0.02,N/A,N/A
arduino:samd:arduino_zero_edbg,88,0.03,4,0.01,88,0.03,4,0.01,92,0.04,4,0.01,88,0.03,4,0.01
arduino:samd:mkrzero,88,0.03,4,0.01,88,0.03,4,0.01,92,0.04,4,0.01,88,0.03,4,0.01
arduino:samd:nano_33_iot,88,0.03,4,0.01,88,0.03,4,0.01,92,0.04,4,0.01,88,0.03,4,0.01

@per1234 per1234 added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Sep 6, 2025
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: code Related to content of the project itself type: enhancement Proposed improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants